package com.jf.cloud.service.sysmanager.entity;


import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * <p>
 * 机器码
 * </p>
 *
 * @author LangK
 * @since 2017-12-04
 */
@Entity
@Table(name="sys_computer")
public class SysComputer extends BaseEntity {

    private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy= GenerationType.IDENTITY)
	@Column(name = "ROW_ID", nullable = false)
	protected Long rowId;

	public Long getRowId() {
		return rowId;
	}

	public void setRowId(Long rowId) {
		this.rowId = rowId;
	}

    /**
     * 机器码
            
            进行了MD5 加密
     */
	@Column(name="COMPUTER_CODE")
	private String computerCode;

    /**
     * 机器描述
     */
	@Column(name= "COMPUTER_DEC")
	private String computerDec;
    /**
     * 添加时间
     */
	@Column(name = "ADD_TIME")
	private Timestamp addTime;
    /**
     * 添加人ID
     */
	@Column(name = "OPERATOR_ID")
	private Long operatorId;
    /**
     * 添加人登陆账号
     */
	@Column(name = "OPERATOR_ACCOUNT")
	private String operatorAccount;
    /**
     * 修改时间
     */
	@Column(name = "MODIFY_TIME")
	private Timestamp modifyTime;
    /**
     * 修改人ID
     */
	@Column(name = "MODIFY_IC")
	private Long modifyIc;
    /**
     * 修改人登陆账号
     */
	@Column(name = "MODIFY_ACCOUNT")
	private String modifyAccount;
    /**
     * 是否允许登录游戏
     */
	@Column(name = "LOGIN_GAME_FALG")
	private Integer loginGameFalg;


	public String getComputerCode() {
		return computerCode;
	}

	public void setComputerCode(String computerCode) {
		this.computerCode = computerCode;
	}

	public String getComputerDec() {
		return computerDec;
	}

	public void setComputerDec(String computerDec) {
		this.computerDec = computerDec;
	}

	public Timestamp getAddTime() {
		return addTime;
	}

	public void setAddTime(Timestamp addTime) {
		this.addTime = addTime;
	}

	public Long getOperatorId() {
		return operatorId;
	}

	public void setOperatorId(Long operatorId) {
		this.operatorId = operatorId;
	}

	public String getOperatorAccount() {
		return operatorAccount;
	}

	public void setOperatorAccount(String operatorAccount) {
		this.operatorAccount = operatorAccount;
	}

	public String getModifyTime() {
		return modifyTime + "";
	}

	public void setModifyTime(Timestamp modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Long getModifyIc() {
		return modifyIc;
	}

	public void setModifyIc(Long modifyIc) {
		this.modifyIc = modifyIc;
	}

	public String getModifyAccount() {
		return modifyAccount;
	}

	public void setModifyAccount(String modifyAccount) {
		this.modifyAccount = modifyAccount;
	}

	public Integer getLoginGameFalg() {
		return loginGameFalg;
	}

	public void setLoginGameFalg(Integer loginGameFalg) {
		this.loginGameFalg = loginGameFalg;
	}


	@Override
	public String toString() {
		return "SysComputer{" +
			", computerCode=" + computerCode +
			", computerDec=" + computerDec +
			", addTime=" + addTime +
			", operatorId=" + operatorId +
			", operatorAccount=" + operatorAccount +
			", modifyTime=" + modifyTime +
			", modifyIc=" + modifyIc +
			", modifyAccount=" + modifyAccount +
			", loginGameFalg=" + loginGameFalg +
			"}";
	}
}
